package priv.project.pojo;/**
 * @author： li
 * @date： 2023-02-14 16:04
 * @version 1.0
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @author： ljm
 * @date： 2023-02-14 16:04
 * @version 1.0
 */
@TableName("t_collect")
public class Collect {
    private int id;
    private int userId;
    private int strategyId;
    private Date createDate;


    public Collect() {
    }

    public Collect(int id, int userId, int strategyId, Date createDate) {
        this.id = id;
        this.userId = userId;
        this.strategyId = strategyId;
        this.createDate = createDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getStrategyId() {
        return strategyId;
    }

    public void setStrategyId(int strategyId) {
        this.strategyId = strategyId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "id=" + id +
                ", userId=" + userId +
                ", strategyId=" + strategyId +
                ", createDate=" + createDate +
                '}';
    }
@TableField(exist = false)
private Strategy strategy;

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }
}
